/**
 * 微信服务核心操作接口API
 */
import request from '@/utils/request'
// import qs from 'qs'

// 获取微信授权链接
const getWechatLogin = () => {
  return request({
    url: '/addons/weixin/api/login',
    method: 'get'
  })
}
// 获取用户微信信息
const getWechatInfo = (query) => {
  return request({
    url: '/addons/weixin/api/userinfo',
    method: 'get',
    params: query
  })
}

export default {
  getWechatLogin,
  getWechatInfo
}
